<!--审批历史记录-->
<template>
  <el-timeline>
  <el-timeline-item v-for="(item,index) of historyList" :key="index" :timestamp="'开始时间:'+item.startTime + (item.endTime?('----结束时间:' + item.endTime): '')" color="#0bbd87"
            placement="top"
  >
    <el-card class="el-card-custom">
    <h4>{{ item.taskName }}</h4>
    <p v-if="!item.suggestion" class="suggestionText">{{ item.suggestion }}</p>
    <p v-else class="suggestionText">意见未填写</p>
    <div class="taskMen">
      <span v-if="item.candidate">待处理人：{{ item.candidate }}</span>
      <br>
      <span v-if="item.displayName">处理人：{{ item.displayName }}</span>
      </div>
      </el-card>
    </el-timeline-item>
  </el-timeline>
</template>

<script>
export default {
  name: "flowHistory",
  props: {
    historyList: {
      type: Array, default() {
        return []
      }
    },
  },
}
</script>

<style scoped>

</style>